<?php 
	$a =&get_instance();
	$a->load->model('Mnews_cat');
	$type =$a->Mnews_cat->get_cattype();
?>
<ul id="list_pro">
	<?php if(!empty($type)){ foreach ($type as $data){?>
        	<li>
            	<a href="<?php echo base_url()?>index.php/news/newscat/<?php echo $data['cat_id']?>" class="title_pro"><?php if(empty($_SESSION['lang'])) echo $data['cat_name_en']; else echo $data['cat_name']?></a>
            </li>
            <?php if(!empty($data['typename'])){foreach ($data['typename'] as $datasub){?>
            <li>
            	<a href="<?php echo base_url()?>index.php/news/newstype/<?php echo $datasub['type_id']?>"><?php if(empty($_SESSION['lang'])) echo html_entity_decode($datasub['type_name_en'],ENT_QUOTES,"UTF-8");else echo html_entity_decode($datasub['type_name'],ENT_QUOTES,"UTF-8")?></a>
             </li>
            <?php }}?>
     <?php }}?>
           
</ul>